namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("SYS_ROLE_RESOURCES")]
    public class SYS_ROLE_RESOURCES : ObjectRow {
        
        public SYS_ROLE_RESOURCES() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public SYS_ROLE_RESOURCES(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected SYS_ROLE_RESOURCES(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        //[Key("SEQUENCE_NO",true,true)]
        //public int SEQUENCENO {
        //    get {
        //        return (System.Int32)GetValue("SEQUENCENO");
        //    }
        //    set {
        //        SetValue("SEQUENCENO", value);
        //    }
        //}

        [Field("GROUP_ID")]
        public int GROUP_ID {
            get {
                return (System.Int32)GetValue("GROUP_ID");
            }
            set {
                SetValue("GROUP_ID", value);
            }
        }
        
        [Field("MODULE_ITEM_ID")]
        public int MODULE_ITEM_ID
        {
            get {
                return (System.Int32)GetValue("MODULE_ITEM_ID");
            }
            set {
                SetValue("MODULE_ITEM_ID", value);
            }
        }
        
    }
}
